package sentinel.demo03.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;

public class MyBlockHandler {
    public static String sayHiError(String name, BlockException e){
        System.out.println("name:"+name);
        System.out.println("exc class:"+e.getClass().getName());
        return "静态方法调用降级处理,你被限流|熔断了";
    }
}
